﻿using FluentNHibernate.Mapping;
using Konekcija.Core.Reporting.Dto.Application.Crm;

namespace Konekcija.Core.Reporting.Mappings.Crm
{
    public class MerchantFaqMap : ClassMap<MerchantFaq>
    {
        public MerchantFaqMap()
        {
            Schema("crm");
            Table("MerchantFaqs");

            Id(x => x.Id).GeneratedBy.GuidComb().Not.Nullable();
            Map(x => x.Question).Nullable();
            Map(x => x.Answer).Nullable();
            Map(x => x.FaqType).Nullable();
            Map(x => x.DateCreated).Nullable();

            References(x => x.Merchant);
        }
    }
}
